from django.db import models

# Create your models here.
from store.models import Goods


class Cart(models.Model):
    good = models.ForeignKey(Goods, verbose_name="商品", on_delete=models.CASCADE)
    amount = models.IntegerField(verbose_name='数量', default=1)
    id_deleted = models.BooleanField(verbose_name="是否还在购物车里", default=0)

    class Meta:
        verbose_name = "购物车"
        verbose_name_plural = verbose_name
